package com.trendata.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.trendata.dao.IUserDao;
import com.trendata.domain.User;

@Service("userService")
public class UserService {

	@Autowired
	private IUserDao userDao;

	public void insert(User user) {
		  userDao.insert(user);
	}

	public int deleteByOpenId(String openId) {
		return userDao.deleteByOpenId(openId);
	}

	public int update(User user) {
		return userDao.update(user);
	}

	public User selectByOpenId(String openId) {
		return userDao.selectByOpenId(openId);
	}

}
